
package nccloud.web.arap.amortization.action;

import nc.vo.arap.amortization.AggAmortizationVO;
import nc.vo.pub.BusinessException;
import nc.vo.pubapp.pattern.model.entity.bill.IBill;
import nccloud.framework.core.exception.ExceptionUtils;
import nccloud.framework.service.ServiceLocator;
import nccloud.itf.arap.amortization.aggamortizationvo.IAmortizationvoService;
import nccloud.web.arap.amortization.action.base.BaseDeleteAction;

/**
* @description 一主多子删除
* @version ncc1.0
**/
public class DeleteAction extends BaseDeleteAction {

    @Override
    public void delete(IBill bill) {
        try {
            IAmortizationvoService service = ServiceLocator.find(IAmortizationvoService.class);
             service.delete(( nc.vo.arap.amortization.AggAmortizationVO) bill);
        } catch (BusinessException e) {
            ExceptionUtils.wrapException(e);
        }
    }

    @SuppressWarnings("rawtypes")
    @Override
    public Class getClazz() {
        return nc.vo.arap.amortization.AggAmortizationVO.class;
    }
}
